/** When your routing table is too long, you can split it into small modules **/

import { BasicLayout, BlankLayout } from '@/layout'

const investRouter = {
  path: '/invest',
  component: BasicLayout,
  name: 'invest',
  redirect: '/invest/bill/list',
  meta: {
    title: '理财',
    icon: 'invest'
  },
  children: [{
    path: 'bill',
    name: 'Bill',
    component: BlankLayout,
    redirect: '/invest/bill/list',
    meta: { title: '记账', icon: 'invest' },
    children: [
      {
        path: 'list',
        component: () => import('@/views/invest/bill'),
        name: 'BillList',
        meta: { title: '账单', icon: 'bill' }
      },
      {
        hidden: true,
        path: 'bill-type',
        component: () => import('@/views/invest/bill-type'),
        name: 'UserGroup',
        meta: { title: '账单类型', icon: 'type' }
      }
      // ,
      // {
      //   path: 'budget',
      //   component: () => import('@/views/invest/budget'),
      //   name: 'Budget',
      //   meta: { title: '预算', icon: 'budget' }
      // }
    ]
  }
  ]

}

export default investRouter
